Carbon


GetIntlResource

Header: Script.h Carbon status: Supported

Returns a handle to one of the international resources

Handle GetIntlResource (
    SInt16 theID
);
Parameter descriptions
theID

Contains an integer (0, 1, 2, 4, or 5 respectively for the 'itl0', 'itl1', 'itl2', 'itl4', and 'itl5'resources) to identify the type of the desired international resource.

function result

A handle to the correct resource of the requested type. The resource returned is that of the current script, which is either the font script or the system script. The resource is of one of the following types: numeric-format ('itl0'), long-date-format ('itl1'), string-manipulation ('itl2'), tokens ('itl4'), or encoding/rendering ('itl5').

If GetIntlResource cannot return the requested resource, it returns a NULL handle and sets the global variable resErr to the appropriate error code.

SPECIAL CONSIDERATIONS

GetIntlResource may move memory; your application should not call this function at interrupt time.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)